package com.bawei.park2211a.equipment

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.EquipmentEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class EquipmentViewModel @Inject constructor(var apiService: ApiService):BaseViewModel(){
    var equipmentSuccess=MutableLiveData<MutableList<EquipmentEntity>>()
    fun equipment(){
        httpRequest({apiService.equipment()},{equipmentSuccess.postValue(it)})
    }
}